package com.navi.loaddata.pojo;

/**
 * @auther Matthew
 * @Date 2018/3/28
 */
public class ProdDTO {

  private String productspecname;
  private String layout;
  private String factoryName;

  public String getProductspecname() {
    return productspecname;
  }

  public void setProductspecname(String productspecname) {
    this.productspecname = productspecname;
  }

  public String getLayout() {
    return layout;
  }

  public void setLayout(String layout) {
    this.layout = layout;
  }

  public String getFactoryName() {
    return factoryName;
  }

  public void setFactoryName(String factoryName) {
    this.factoryName = factoryName;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (!(o instanceof ProdDTO)) {
      return false;
    }

    ProdDTO prodDTO = (ProdDTO) o;

    if (productspecname != null ? !productspecname.equals(prodDTO.productspecname) : prodDTO.productspecname != null) {
      return false;
    }
    if (layout != null ? !layout.equals(prodDTO.layout) : prodDTO.layout != null) {
      return false;
    }
    return factoryName != null ? factoryName.equals(prodDTO.factoryName) : prodDTO.factoryName == null;
  }

  @Override
  public int hashCode() {
    int result = productspecname != null ? productspecname.hashCode() : 0;
    result = 31 * result + (layout != null ? layout.hashCode() : 0);
    result = 31 * result + (factoryName != null ? factoryName.hashCode() : 0);
    return result;
  }

  @Override
  public String toString() {
    return "ProdDTO{" +
        "productspecname='" + productspecname + '\'' +
        ", layout='" + layout + '\'' +
        ", factoryName='" + factoryName + '\'' +
        '}';
  }
}
